﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UltiCoreLibrary
{
    public class Party
    {
        public Party(Player dealer, Game game, Player point, Player defender1, Player defender2)
        {
            this.dealer = dealer;
            this.game = game;
            this.point = point;
            this.defender1 = defender1;
            this.defender2 = defender2;
        }

        public void SetContra(BasicGame subGame, ContraLevel contraLevel)
        {
            this.game.SubGames[subGame] = contraLevel;
        }

        public void SetContra(ContraLevel contraDefender1, ContraLevel contraDefender2)
        {
            this.contraDefender1 = contraDefender1;
            this.contraDefender2 = contraDefender2;
        }
        

        private Player dealer;

        public Player Dealer
        {
            get { return dealer; }
            set { dealer = value; }
        }
        private Game game;

        public Game Game
        {
            get { return game; }
            // set { game = value; }
        }
        private ContraLevel contraDefender1;

        public ContraLevel ContraDefender1
        {
            get { return contraDefender1; }
            // set { contraDefender1 = value; }
        }
        private ContraLevel contraDefender2;

        public ContraLevel ContraDefender2
        {
            get { return contraDefender2; }
            // set { contraDefender2 = value; }
        }
        private Player point;

        public Player Point
        {
            get { return point; }
            // set { point = value; }
        }
        private Player defender1;

        public Player Defender1
        {
            get { return defender1; }
            // set { defender1 = value; }
        }
        private Player defender2;

        public Player Defender2
        {
            get { return defender2; }
            // set { defender2 = value; }
        }
        public int pointPrize = 0;
        public int defender1Prize = 0;
        public int defender2Prize = 0;

        public string partyResult;


    }
}
